package day05;

public class MainTest4 {
    public static void main(String[] args) {
        int[] numArry = {99,85,82,63,60};
        System.out.println("原始数组");
        for (int i = 0;i< numArry.length;i++){
            System.out.println(numArry[i]+"");
        }
        System.out.println();
        //扩容
        int[] resArray = new int[numArry.length+1];
        for (int i = 0;i<= numArry.length;i++){
            resArray[i]=numArry[i];
        }
        System.out.println("扩容后的数组");
        for (int i = 0;i<= resArray.length;i++){
            System.out.println(resArray[i]+"");
        }
        System.out.println();

    }
}
